﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace MolyMart
{
    public class DBAdapter
    {
        private SqliteDb db = new SqliteDb();
        public int ItemsCount = 0; 

        public void CreateDb()
        {
            db.CreateDb();
        }

        public void CreateTable()
        {
            db.CreateTable();
        }

        public void InsertItem(ServerValuesItem item)
        {
            db.InsertItem(item);
            ItemsCount = db.itemCount;
        }

        public void CommitItems()
        {
            db.CommitItems();
        }
    }
}
